﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-INF/taglibs-image.tld" prefix="img" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<jsp:include page="/jsp/include/logo.jsp"></jsp:include>
<jsp:include page="/jsp/include/loginedHead.jsp"></jsp:include>


<table width="960" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="10"></td>
	</tr>
</table>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="left" valign="top">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
    		
    		<tr>
    			<td width="223" valign="top">
    				<link href="Style.css" rel="stylesheet" type="text/css" />
<jsp:include page="/jsp/include/myGoldLeft.jsp"></jsp:include>
<script type="text/javascript" src="_Member/Scripts/left.js"></script></td>
    			<td align="right" valign="top">
    				<table width="727" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="27" valign="bottom" background="${contextPath }/jsp/images/bg_27.gif"><table width="727" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="20" height="24">&nbsp;</td>
									<td align="left" valign="middle" class="center_box1">
										修改资料
									</td>
									<td>&nbsp;</td>
								</tr>
							</table></td>
						</tr>
						<tr>
							<td align="center" valign="top" background="${contextPath }/jsp/images/bg_28.gif"><table width="680" border="0" align="center" cellpadding="0" cellspacing="0" style="color:#444;">
								<form id="Edit_Form" name="user" method="post" action="${contextPath }/showUser.do?operation=modifyinfo">
									<tr>
										<td height="25" colspan="3" align="left" valign="middle">&nbsp;</td>
									</tr>
									<tr>
										<td height="35" align="right">
											有拍点数：
										</td>
										<td align="left">${loginUser.card.cardValue }
										点
										</td>
										<td align="left" valign="middle" class="center_box4" id="Name_ErrorPaniel2">&nbsp;
										</td>
									</tr>
									<tr>
										<td width="150" height="35" align="right"> 姓名： </td>
										<td width="220" align="left"><input name="Name" type="text" class="center_box3" id="Name" value="${loginUser.realName}" /></td>
										<td align="left" valign="middle" class="center_box4" id="Name_ErrorPaniel"> 填写您的中文姓名。 </td>
									</tr>
									<tr>
										<td height="30" align="right"> 性别： </td>
										<td align="left"><label>
											<input name="Sex" type="radio" class="radio" id="radio" value="1" />
											</label>
											男
											<label>
												<input name="Sex" type="radio" class="radio" id="radio2" value="0" checked="checked" />
										  </label>
											女 </td>
										<td align="left" valign="top" class="center_box4" id="Sex_ErrorPaniel">&nbsp;</td>
									</tr>
									<tr>
										<td height="35" align="right"> 地址： </td>
										<td align="left"><input name="Address" type="text" class="center_box3" id="Address" value="${loginUser.userAddress}" />
										</td>
										<td align="left" valign="middle" class="center_box4" id="Address_ErrorPaniel"> 请填写您的联系地址。 </td>
									</tr>
									<tr>
										<td height="35" align="right"> 手机号码： </td>
										<td align="left"><input name="Tel" type="text" class="center_box3" id="Tel" value="${loginUser.userPhone}" />
										</td>
										<td align="left" valign="middle" class="center_box4" id="Tel_ErrorPaniel"><span class="Reg_InformationPaniel_Comm">请填写11位手机号码。如：13840888888</span></td>
									</tr>
									<tr>
										<td height="35" align="right"> 电子邮箱： </td>
										<td align="left"><input name="Email" type="text" class="center_box3" id="Email" value="${loginUser.email}" />
										</td>
										<td align="left" valign="middle" class="center_box4" id="Email_ErrorPaniel"><div>当您需要找回密码时，信息将被发送到电子邮箱。</div></td>
									</tr>
									<tr>
										<td height="35" align="right"> 请填写验证码： </td>
										<td align="left"><input name="ValCode" type="text" class="center_box3" id="ValCode" size="4" maxlength="4" />
											&nbsp; </td>
											
										<td align="left" valign="middle" class="center_box4" id="ValCode_ErrorPaniel"> 请输入图片中的数字。 </td>
									</tr>
									<tr>
										<td height="30" align="right">&nbsp;</td>
										<td align="left">
										   	<%
                                          int num = (int) java.lang.Math.round(java.lang.Math.random() * 8999);
                                          String sRand = "" + (1000 +num);
                                          session.setAttribute("userInfo.authcode",sRand);
                                    %>

                                   <img:image src="${contextPath }/jsp/images/validate.gif" refresh="true" >

                                   <img:text text="<%=sRand.substring(0,1)%>" x="7" y="-1" font="Times New Roman" bold="false" size="22" color="0x993399" italic="true" />
                                   <img:text text="<%=sRand.substring(1,2)%>" x="17" y="-1" font="Times New Roman" bold="false" size="22" color="0x660033" italic="false" />
                                   <img:text text="<%=sRand.substring(2,3)%>" x="27" y="-1" font="Times New Roman" bold="true" size="18" color="0xcc3366" italic="true" />
                                   <img:text text="<%=sRand.substring(3,4)%>" x="37" y="-1" font="Times New Roman" bold="false" size="22" color="0x990099" italic="false" />

                                   <%if(num<4500){%>
                                   <img:grayscale brightness="90" />
                                   <%}%>
                                   </img:image>
										</td>
										<td align="left" id="ValCode_ErrorPaniel">&nbsp;</td>
									</tr>
									<tr>
										<td colspan="3" align="center"><font color="red">${msg }</font></td>
									</tr>
									<tr>
										<td colspan="3" align="center"><label>
											<input name="submit" type="submit" style=" padding:4px 0 2px 0; color:#444;" id="Edit_Button" value="修改我的资料" />
											</label>
										</td>
									</tr>
									<tr>
										<td colspan="3" align="left">&nbsp;</td>
									</tr>
								</form>
							</table></td>
						</tr>
						<tr>
							<td><img src="${contextPath }/jsp/images/bg_29.gif" width="727" height="13" title="" alt="有拍网，中国第一，娱乐购物，全新模式，拍卖，低价，有点，手机，mp3，mp4，摄影，摄像，数码相机，车载，试听设备，电脑/设备，化妆品" /></td>
						</tr>
					</table>
			  </td>
		  </tr>
	  </table>
    </td>
  </tr>
</table>

<jsp:include page="/jsp/include/footer.jsp"></jsp:include>